<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    section {
        width: 700px;
        height: 200px;
        margin: 0 auto;
        background-color: aqua;
        display: flex;
        /* flex-direction:  设置主轴方向 就是数学的 x 和 y */
        /* flex-direction: column;
         */
        /* flex-wrap 默认不换行 */
        flex-wrap: wrap;
    }
    
    section span {
        width: 200px;
        height: 50px;
        /* flex布局进行平分 */
        /* flex: 1; */
    }
    
    section span:nth-child(1) {
        flex: 2;
        color: red;
    }
    
    .box1 {
        background-color: antiquewhite;
    }
    
    .box2 {
        background-color: purple;
    }
    
    div {
        display: inline;
    }
</style>

<body>
    <section>
        <span class="box1">1</span>
        <span class="box2">2</span>
        <span class="box1">1</span>
        <span class="box2">2</span>
        <span class="box1">1</span>
        <span class="box2">2</span>
        <span class="box1">1</span>
        <span class="box2">2</span>
        <span class="box1">1</span>
        <span class="box2">2</span>
    </section>
    <div>
        <div style="width: 10px;">1</div>
        <div style="width: 10px;">2</div>
    </div>
</body>

</html>